package com.servlet;

import com.sun.media.sound.SoftTuning;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author cyt
 * @create 2020-08-15 10:32
 */

public class MyLister implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {

        ServletContext context = servletContextEvent.getServletContext();


        System.out.println("初始化成功");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

        System.out.println("销毁");
    }
}
